import request from '@/utils/request'

// 查询设备巡检列表
export function listSetting(query) {
  return request({
    url: '/iot/setting/list',
    method: 'get',
    params: query
  })
}

// 查询设备巡检列表
export function allListSetting(query) {
    return request({
      url: '/iot/setting/allList',
      method: 'get',
      params: query
    })
  }
  
// 查询设备巡检详细
export function getSetting(inspectionSettingId) {
  return request({
    url: '/iot/setting/' + inspectionSettingId,
    method: 'get'
  })
}

// 新增设备巡检
export function addSetting(data) {
  return request({
    url: '/iot/setting',
    method: 'post',
    data: data
  })
}

// 修改设备巡检
export function updateSetting(data) {
  return request({
    url: '/iot/setting',
    method: 'put',
    data: data
  })
}

// 删除设备巡检
export function delSetting(inspectionSettingId) {
  return request({
    url: '/iot/setting/' + inspectionSettingId,
    method: 'delete'
  })
}
